import Cookies from 'js-cookie'

const TokenKey = 'ik_d_mes_token'

// 权限管理方法

// 获取Token
export function getToken() {
  return Cookies.get(TokenKey)
}

// 设置Token
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

// 移除Token
export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function setUser(data) {
  Cookies.set('user', data)
}
export function getUser() {
  return Cookies.get('user')
}
export function removeUser() {
  return Cookies.remove('user')
}
